package com.netease.nimlib.ipc.provider.demo;

import android.util.Log;

import com.netease.nimlib.ipc.cp.client.Notifier;
import com.netease.nimlib.ipc.cp.client.ProviderClient;
import com.netease.nimlib.ipc.cp.provider.PreferenceContentProvider;

/**
 * 云信基于SharedPreference的数据源提供者&数据业务处理器
 * <p>
 * Created by huangjun on 2017/10/31.
 */

public class NIMContentProvider extends PreferenceContentProvider {
    @Override
    protected void onHandleData(String name, String key, String value) {
        Log.i("huangjun", "handle data=" + name + "/" + key + "/" + value);
        Notifier.notifyChange(getContext(), name, key, ProviderClient.UriTypeEnum.String);
    }
}
